﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BusinessComponents.ReservationMaster>" %>
<%@ Import Namespace="BusinessComponents.Common" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Confirm Reservation
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2></h2>

    <% using (Html.BeginForm("Create", "Reservation"))
       {%>
        <%: Html.ValidationSummary(true) %>
        

        <fieldset>
            <legend>Confirm Reservation</legend>

            <span id="InfoMessage" class="field-validation-error">
                <%= TempData["Message"] as string %>
            </span>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.StartDate) %>
            </div>
            <div class="editor-field">
                <%: Model.StartDate.ToString("dd MMM yyyy") %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.EndDate) %>
            </div>
            <div class="editor-field">
                <%: Model.EndDate.ToString("dd MMM yyyy")%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.RoomTypeDesc) %>
            </div>
            <div class="editor-field">
                <%: Model.RoomTypeDesc %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.DayCount) %>
            </div>
            <div class="editor-field">
                <%: Model.DayCount%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.RoomCount) %>
            </div>
            <div class="editor-field">
                <%: Model.RoomCount %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NoOfPax) %>
            </div>
            <div class="editor-field">
                <%: Model.NoOfPax %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.TotalCostInDollar)%>
            </div>
            <div class="editor-field">
                <%: Model.TotalCostInDollar%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Remarks) %>
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Remarks) %>
                <%: Html.ValidationMessageFor(model => model.Remarks) %>
            </div>
            
            
            <p>
                <input type="submit" name="btnSubmit" value="Confirm" />
                <input type="submit" name="btnSubmit" value="Cancel" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

